package com.heima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.article.ArticleVisitStreamMess;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.dtos.ArticleInfoDto;
import com.heima.model.article.dtos.CollectionBehaviorDto;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.common.dtos.ResponseResult;

public interface ApArticleService extends IService<ApArticle> {

    //加载首页
    ResponseResult load(ArticleHomeDto dto);

    ResponseResult load2(ArticleHomeDto dto);

    //加载更多
    ResponseResult loadmore(ArticleHomeDto dto);

    //加载最新
    ResponseResult loadnew(ArticleHomeDto dto);

    void content(Long articleId);

    //保存文章
    ResponseResult saveArticle(ArticleDto dto);

    void addarticle(ApArticle apArticle, String content);

    //收藏
    ResponseResult collection(CollectionBehaviorDto dto);

    //回显数据
    ResponseResult loadArticleBehavior(ArticleInfoDto dto);

    void updateScore(ArticleVisitStreamMess mess);
}